<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{mmItemGroupBean.page}"/>
		<f:event type="preRenderView" listener="#{mmItemGroupBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Mm Item Group entities"/>

	<ui:define name="header">
		Mm Item Group
	</ui:define>

	<ui:define name="subheader">
		Search Mm Item Group entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="mmItemGroupBeanExampleItemGroupNo" value="Item Group No:"/>
						<h:panelGroup>
							<h:inputText id="mmItemGroupBeanExampleItemGroupNo" value="#{mmItemGroupBean.example.itemGroupNo}"/>
							<h:message for="mmItemGroupBeanExampleItemGroupNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="mmItemGroupBeanExampleMmItemGroupLevel" value="Mm Item Group Level:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{mmItemGroupLevelBean.converter}" id="mmItemGroupBeanExampleMmItemGroupLevel" value="#{mmItemGroupBean.example.mmItemGroupLevel}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmItemGroupLevelBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="mmItemGroupBeanExampleMmItemGroupLevel" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="mmItemGroupBeanExampleItemGroupCode" value="Item Group Code:"/>
						<h:panelGroup>
							<h:inputText id="mmItemGroupBeanExampleItemGroupCode" maxLength="50" value="#{mmItemGroupBean.example.itemGroupCode}"/>
							<h:message for="mmItemGroupBeanExampleItemGroupCode" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="mmItemGroupBeanExampleItemGroupDescr" value="Item Group Descr:"/>
						<h:panelGroup>
							<h:inputText id="mmItemGroupBeanExampleItemGroupDescr" maxLength="300" value="#{mmItemGroupBean.example.itemGroupDescr}"/>
							<h:message for="mmItemGroupBeanExampleItemGroupDescr" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="mmItemGroupBeanExampleItemGroupIsActive" value="Item Group Is Active:"/>
						<h:panelGroup>
							<h:inputText id="mmItemGroupBeanExampleItemGroupIsActive" value="#{mmItemGroupBean.example.itemGroupIsActive}"/>
							<h:message for="mmItemGroupBeanExampleItemGroupIsActive" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{mmItemGroupBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{mmItemGroupBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="mmItemGroupBeanPageItems" styleClass="data-table" value="#{mmItemGroupBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Item Group No"/>
					</f:facet>
					<h:link outcome="/mmItemGroup/view">
						<f:param name="id" value="#{_item.itemGroupNo}"/>
						<h:outputText id="itemItemGroupNo" value="#{_item.itemGroupNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{mmItemGroupBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
